package com.hx.vending.dao;

import com.hx.vending.bean.Admin;
import com.hx.vending.bean.AdminRole;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by Administrator on 2019/1/9.
 */
@Repository
public interface AdminRoleMapper {

    AdminRole selectByPrimary(AdminRole adminRole);

    int insertSelective(AdminRole adminRole);

    int updateByPrimaryKey(Admin admin);

    Integer[] selectRoleByAdmin(@Param("adminId") Integer adminId);

    Integer deleteByAdminId(@Param("integerList")List<Integer> integerList);

    Integer[] selectRole();

}
